Skip to content

feat(prime): continual harness, autonomous budgets, family messaging - #248

Merged
Patel230 merged 1 commit into
mainfrom
feat/prime-adoptions
Aug 24, 2026
Merged

feat(prime): continual harness, autonomous budgets, family messaging#248
Patel230 merged 1 commit into
mainfrom
feat/prime-adoptions

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

Three adoptions from PrimeIntellect-ai/prime-agent (18k★, the RLM self-improving agent).

1. Continual harness — internal/intelligence/harness

Versioned, evidence-backed refinement of supplemental agent state (prompts/memories/skill descriptions/subagent specs). Refine bumps the entry version and records a refinement event (trigger → changes → evidence → outcome); every change is auditable and reversible via snapshot-based rollback. Never rewrites the immutable base system prompt. Durable JSON persistence.

2. Bounded autonomous budgets — internal/engine/autonomous_budget.go

Tracks turns/tokens/time/continuations within configured limits and a status machine that reports why a run stopped: budget_limited:<which> vs gate_passed vs error. First budget hit wins; terminal reasons stick.

3. Agent family messaging — internal/multiagent/family_messaging.go

Direct inter-agent messages scoped to a family graph (parent/sibling/child), with per-agent pending caps and token-bucket rate limiting.

Testing

New suites green (harness 8, autonomous 8, family 7); full engine + multiagent suites pass; golangci-lint 0 issues; gofmt clean.

Three adoptions from Prime Agent's RLM agent.

Continual harness (internal/intelligence/harness):
- Versioned, evidence-backed refinement store for supplemental agent state
  (prompts, memories, skill descriptions, subagent specs).
- Refine bumps entry version and records a refinement event
  (trigger -> changes -> evidence -> outcome); every change is auditable
  and reversible via snapshot-based rollback. Never rewrites the
  immutable base system prompt. Durable JSON persistence.

Bounded autonomous budgets (internal/engine/autonomous_budget.go):
- Tracks turns/tokens/time/continuations within configured limits and a
  status machine that reports WHY a run stopped: budget_limited:<which>
  vs gate_passed vs error (a passed gate checks only what it verifies;
  reaching a limit does not imply success). First budget hit wins and
  terminal reasons stick.

Agent family messaging (internal/multiagent/family_messaging.go):
- Direct inter-agent messages scoped to a family graph (parent / sibling
  / child) rather than global, with per-agent pending caps and token-
  bucket rate limiting to prevent flooding.

Verification: new suites green (harness 8, autonomous 8, family 7);
engine + multiagent suites pass; golangci-lint 0 issues; gofmt clean.
@Patel230
Patel230 merged commit 2541291 into main Aug 24, 2026
26 checks passed
@Patel230
Patel230 deleted the feat/prime-adoptions branch August 24, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant